Adaptive variable-resistance training